package hy.entity;


import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;
@Component
@Data
//@PropertySource("classpath:person.properties")
//@ConfigurationProperties(prefix = "person")
public class Person {
    @Value("${person.name}")
    String name;
    Integer age;
    boolean married;
    Date birth;
    Map<String,Object> maps;
    List<Object> lists;
    @Autowired
    Dog dog;
}
